// vite.config.ts
import { defineConfig } from "file:///E:/react-project-framework-master/qiankun-micro-frontEnd/sub-app-vue3/node_modules/vite/dist/node/index.js";
import vue from "file:///E:/react-project-framework-master/qiankun-micro-frontEnd/sub-app-vue3/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import { resolve } from "path";
import VueSetupExtend from "file:///E:/react-project-framework-master/qiankun-micro-frontEnd/sub-app-vue3/node_modules/vite-plugin-vue-setup-extend/dist/index.mjs";

// src/plugin/last-commit-msg/last-commit-msg.mjs
import { execSync } from "child_process";
var getLastCommitMsg = () => {
  const rev = execSync("git rev-parse --abbrev-ref HEAD").toString().trim();
  let commitHash = execSync("git show -s --format=%H").toString().trim();
  let name = execSync("git show -s --format=%cn").toString().trim();
  let date = execSync("git show -s --format=%cd").toString();
  let message = execSync("git show -s --format=%s").toString().trim();
  return `
        branch: ${rev},
        commitHash: ${commitHash},
        author: ${name},
        commitDate: ${date},
        commitMessage: ${message}
    `;
};

// src/plugin/last-commit-msg/index.js
var lastCommitPlugin = () => {
  return {
    name: "last-commit-plugin",
    // 插件名称
    // enforce: 'pre', // 该插件在 plugin-vue 插件之前执行，这样就可以直接解析到原模板文件
    /**
     * 代码转译，这个函数的功能类似于 `webpack` 的 `loader`
     * @param code 代码内容
     * @param id main.ts 文件夹中引入的模块的路径
     */
    transform(code, id) {
      if (id.includes("src/plugin/last-commit-msg/toggle.js")) {
        const msg = getLastCommitMsg();
        const _code = code.replace("__GETCOMMITMSG__", JSON.stringify(msg));
        return _code;
      }
      return null;
    }
  };
};

// vite.config.ts
import Inspect from "file:///E:/react-project-framework-master/qiankun-micro-frontEnd/sub-app-vue3/node_modules/vite-plugin-inspect/dist/index.mjs";
import qiankun from "file:///E:/react-project-framework-master/qiankun-micro-frontEnd/sub-app-vue3/node_modules/vite-plugin-qiankun/dist/index.js";
var __vite_injected_original_dirname = "E:\\react-project-framework-master\\qiankun-micro-frontEnd\\sub-app-vue3";
var vite_config_default = defineConfig({
  plugins: [
    vue(),
    VueSetupExtend(),
    lastCommitPlugin(),
    Inspect({
      build: true,
      outputDir: ".vite-inspect"
    }),
    qiankun("subVueAPP", { useDevMode: true })
  ],
  resolve: {
    alias: {
      "@": resolve(__vite_injected_original_dirname, "src")
      // 设置 `@` 指向 `src` 目录
      // 'vue-i18n': 'vue-i18n/dist/vue-i18n.cjs.js'
    }
  },
  server: {
    open: true,
    host: "0.0.0.0",
    // 设置本地Network
    port: 3001,
    // 设置本地端口
    proxy: {
      "/api": {
        target: "http://127.0.0.1:3007",
        // 本地服务器
        changeOrigin: true,
        secure: false
        // rewrite: path => path.replace(/^\/api/, '')
      }
    }
  },
  css: {
    preprocessorOptions: {
      less: {
        // additionalData: `@import "@/assets/css/global.less";`
      }
    }
  },
  build: {
    outDir: "dist/sub-app-vue3"
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAic3JjL3BsdWdpbi9sYXN0LWNvbW1pdC1tc2cvbGFzdC1jb21taXQtbXNnLm1qcyIsICJzcmMvcGx1Z2luL2xhc3QtY29tbWl0LW1zZy9pbmRleC5qcyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiY29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2Rpcm5hbWUgPSBcIkU6XFxcXHJlYWN0LXByb2plY3QtZnJhbWV3b3JrLW1hc3RlclxcXFxxaWFua3VuLW1pY3JvLWZyb250RW5kXFxcXHN1Yi1hcHAtdnVlM1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiRTpcXFxccmVhY3QtcHJvamVjdC1mcmFtZXdvcmstbWFzdGVyXFxcXHFpYW5rdW4tbWljcm8tZnJvbnRFbmRcXFxcc3ViLWFwcC12dWUzXFxcXHZpdGUuY29uZmlnLnRzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9yd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